<?php if(count($customers_files) > 0):?>
<div class="list_file">
    <div class="row-fluid">
        <h1 class="main10" style="margin-top: 10px;">Hồ sơ khách hàng:  <?php echo $customer_name;?></h1>
        <ul>
            <?php foreach ($customers_files as $file):?>
            <li>
                <a href="#" onclick="select_file(<?php echo $file->id;?>)">
                    <img src="/images/files/<?php echo $file->thumbnail;?>"/>
                    <span class="mask"><?php echo date('d/m/Y', strtotime($file->registered_date));?></span>
                </a>
            </li>
            <?php endforeach;?>
        </ul>
    </div>
</div>
<div class="detail_file" id="detail_file">
    <div class="row-fluid">
        <h1 class="main10"><?php echo $customers_files[0]->title; ?> - Ngày: <?php echo date('d/m/Y', strtotime($customers_files[0]->registered_date));?></h1>
            <p class="main11">
                <?php echo $customers_files[0]->content;?>
            </p>
    </div>
</div>
<?php endif;?>